Skip to content

Move containers passed by value in ngram extensions#231

Merged
copybara-service[bot] merged 1 commit into
mainfrom
copybara/941789927
Jul 6, 2026
Merged

Move containers passed by value in ngram extensions#231
copybara-service[bot] merged 1 commit into
mainfrom
copybara/941789927

Conversation

@copybara-service

Copy link
Copy Markdown

Move containers passed by value in ngram extensions

In LoudsTreeCompactor and LexiconCompactor take containers by value and assume ownership. Using std::move when storing or passing these containers avoids redundant container copies.

@copybara-service copybara-service Bot force-pushed the copybara/941789927 branch 2 times, most recently from ba80d09 to e4c48a7 Compare July 6, 2026 13:42
In `LoudsTreeCompactor` and `LexiconCompactor` take containers by value and assume ownership. Using `std::move` when storing or passing these containers avoids redundant container copies.

PiperOrigin-RevId: 943261994
@copybara-service copybara-service Bot force-pushed the copybara/941789927 branch from e4c48a7 to b6bfbfd Compare July 6, 2026 14:00
@copybara-service copybara-service Bot merged commit b6bfbfd into main Jul 6, 2026
@copybara-service copybara-service Bot deleted the copybara/941789927 branch July 6, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant